package com.bojiu.lawsearch.lawsearch.mapper;

import com.bojiu.lawsearch.lawsearch.model.RuleLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/6 23:27
 * @Description:
 */
@Repository
@Mapper
public interface RuleLabelMapper extends ObjMapper<RuleLabel> {

    List<Integer> getRuleIdsByLabelIds(@Param("ids") String ids);

    void addCountByCollect(@Param("id")int ruleId, @Param("label") String label);

}
